
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import 'element-ui/lib/theme-chalk/index.css'
import Record from '@/components/dailyRecord'
import ElementUI from 'element-ui'
Vue.config.productionTip = false
console.log(Record.dailyRecord)
Vue.prototype.$DailyRecord = Record.dailyRecord
Vue.prototype.$convertToFile = Record.convertToFile
Vue.use(ElementUI)   //引入element-ui
new Vue({
  router,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus = this; // 安装全局事件总线
  }
}).$mount('#app')
